package com.alliky.classify.mvp.contract;

import com.alliky.core.entity.vo.CategoryVO;
import com.alliky.core.entity.vo.GoodsVO;
import com.alliky.core.base.IModel;
import com.alliky.core.base.IView;

import java.util.HashMap;
import java.util.List;

import io.reactivex.Observable;

/**
 * ================================================
 *
 * @Description: 描述
 * @Author: wxianing
 * @Date: 2022/7/13 17:22
 * ================================================
 */
public interface ClassifyContract {
    interface View extends IView {
        void showCategory(List<CategoryVO> list);

        void showHotGoods(List<GoodsVO> list, boolean isRefresh);

        void setPageNum(int pageNum);
    }

    interface Model extends IModel {
        Observable getCategory(HashMap hashMap);

        Observable getHotGoods(HashMap hashMap);
    }

    interface Presenter {
        void getCategory(HashMap hashMap);

        void getHotGoods(HashMap hashMap, boolean isRefresh);
    }
}
